<include file="Public:header" />
<style>
.header{display:none;}
.w790{margin-top:0px;}
</style>
<div class="container main"> <include file="Public:left" />
  <div class="w790">
  <script>
  	function uploaded(path){
		$("#img_url").attr("src",'__PUBLIC__'+path);
		$("input[name='img_url']").val(path);
	}
	
	function del_img(){
		if(confirm('您确定要删除图片吗?')){
			var file=$("input[name='img_url']").val();
			$.post("{:U('delImgBypath')}",{'path':file},function(data){alert(data);
				$("input[name='img_url']").val('');
				$("#img_url").attr('src','');
			});
		}else{
			return false;
		}
	}
  </script>
   <h1><a href="{:U('index')}">返回列表</a></h1>
   
    <form class="checkoutform1" action="{:U('insert')}" method="post">
    <input type="hidden" name="template_id" value="{$template_id}"  />
      <table class="table table-bordered" width="100%" border="0" cellspacing="0" cellpadding="0">
       <tr>
        <td align="right">标题</td>
        <td><label for="title"></label>
          <input name="title" type="text" id="title" value="{$info.title}" size="70" />
          </td>
      </tr>
         <tr>
           <td align="right">文件名</td>
           <td><input name="filename" type="text" id="filename" value="{$info.filename}" size="70" /></td>
         </tr>
         <tr>
           <td align="right">模块说明</td>
           <td><textarea name="remark" cols="70" rows="5" id="remark">{$info.remark}</textarea></td>
         </tr>
         <tr>
           <td align="right">类型</td>
           <td><p>
             <label>
               <input name="type" type="radio" id="type_0" value="0" checked="checked" />
               自定义模块</label>
             <br />
             <label>
               <input type="radio" name="type" value="1" id="type_1" />
               产品列表</label>
             <br />
             <label>
               <input type="radio" name="type" value="2" id="type_2" />
               文章列表</label>
             <br />
             <label>
               <input type="radio" name="type" value="3" id="type_3" />
               图片轮播</label>
             <br />
             
             <label>
               <input type="radio" name="type" value="10" id="type_3" <eq name="info['type']" value="10">checked="checked"</eq> />
               图片滚动模块(左右滚)</label>
             <br />
             
             <label>
               <input type="radio" name="type" value="4" id="type_4" />
               单页内容模块</label>
             <br />
             <label>
               <input type="radio" name="type" value="5" id="type_4" />
               布局模块</label>
               <br />
             <label>
               <input type="radio" name="type" value="6" id="type_4" />
               空盒子</label>
               
               <br />
             <label>
               <input type="radio" name="type" value="7" id="type_4" />
               客服模块</label>
               
               <br />
             <label>
               <input type="radio" name="type" value="8" id="type_4" />
               地图模块</label>
               <br />
             <label>
               <input type="radio" name="type" value="9" id="type_4" />
               导航模块</label>
          <br />
             <label>
               <input type="radio" name="type" value="11" id="type_4" <eq name="info['type']" value="11">checked="checked"</eq> />
               面包屑导航</label>
               
               
               <br />
             <label>
               <input type="radio" name="type" value="12" id="type_4" <eq name="info['type']" value="12">checked="checked"</eq> />
               栏目列表</label>
              <br />
             <label>
               <input type="radio" name="type" value="13" id="type_4" <eq name="info['type']" value="13">checked="checked"</eq> />
               搜索框</label>
               
               
               <br />
             <label>
               <input type="radio" name="type" value="14" id="type_4" <eq name="info['type']" value="14">checked="checked"</eq> />
               二级空盒子</label>
               
               <!--<br />
             <label>
               <input type="radio" name="type" value="15" id="type_4" <eq name="info['type']" value="15">checked="checked"</eq> />
               左浮动空盒子</label>-->
               
               <br />
             <label>
               <input type="radio" name="type" value="16" id="type_4" <eq name="info['type']" value="16">checked="checked"</eq> />
               留言框</label>
           </p></td>
         </tr>
         <tr>
           <td align="right">分类</td>
           <td><select name="pid" id="pid">
             <option value="">请选择</option>
             <volist name="pid_list" id="vo">
               <option <eq name="vo['id']" value="$info['pid']">selected="selected"</eq> value="{$vo.id}">{$vo.title}</option>
               
              </volist>
           </select></td>
        </tr>
      
      </if>
      <tr>
        <td align="right">图片</td>
        <td><input name="img_url" type="hidden" value="{$info.img_url}" />
          <img onclick="showImgBox(this);" src="{:getThumbPath($info['img_url'])}" id="img_url" height="40" /></td>
      </tr>
    
  
        <tr><td colspan="2" align="center"><button type="submit" class="mybutton">提交</button></td>
        </tr>
      </table>
    </form>
  </div>
  <div class="clear"></div>
</div>
</body></html>